# -*- coding: utf-8 -*-
# This code written by ChanGOGOGO
"""
PET环境模拟蚂蚁接口调用
"""
import os
import sys

current_script_dir = os.path.dirname(os.path.abspath(__file__))
parent_dir = os.path.dirname(current_script_dir)
if parent_dir not in sys.path:
    sys.path.append(parent_dir)
from ant_api import MarketingShieldAPI


app_key = "16385001"
app_secret = "4e989dbd439e4e63954972b781edea3a"
ms_api = MarketingShieldAPI(app_key, app_secret, ip="172.18.160.131", port=9705)


"""导入手机号"""
task_id = 173
total_phone = 1
custom_variable = {"称呼": "姚先生"}
ms_api.import_phone(task_id, total_phone, custom_variable)

"""查询任务列表"""
# task_id = None
# last_call_time = None
# ms_api.get_task_list(task_id, last_call_time)

"""批量查询任务"""
# task_ids = [58]
# ms_api.get_batch_task_list(task_ids)
